package 异常;

import java.util.Scanner;

public class yichang {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        try{
            System.out.println("请输入1-3数");
            int a=input.nextInt();
            if (a==1){
                System.out.println("a");
            } else if (a==2){
                System.out.println("b");
            }else if (a==3){
                System.out.println("c");
            }else{
                System.out.println("输入有误");
            }
        }catch (Exception e){
            System.out.println("输入有误");
        }finally {
            System.out.println("欢迎提出建议！");
        }

    }
}
